﻿<UserControl 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    x:Class="TM.QWeibo.Client.UserControls.HuaTi"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    <UserControl.Resources>
        <Storyboard x:Name="PopupOffStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.VerticalOffset)" Storyboard.TargetName="popUserList">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1500"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="PopupOnStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.VerticalOffset)" Storyboard.TargetName="popUserList">
                <EasingDoubleKeyFrame KeyTime="0" Value="1500"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Popup x:Name="popUserList" IsOpen="False" HorizontalOffset="0" VerticalOffset="1500">
        <Grid x:Name="UserListGrid" Style="{StaticResource HuaTiLayoutGrid}">
            <StackPanel>
                <TextBlock Text="#话题#" Style="{StaticResource HuaTiPageTitleStyle}"/>
                <StackPanel Orientation="Horizontal">
                    <TextBox x:Name="txtHuati" Style="{StaticResource HuaTiTextboxStyle}" GotFocus="txtKeyword_GotFocus" LostFocus="txtKeyword_LostFocus" KeyUp="txtHuati_KeyUp" />
                    <Button x:Name="btnInsert" Style="{StaticResource HuaTiInsertButtonStyle}" Content="插入" Click="btnInsert_Click" />
                    <!--<Button x:Name="btnCancel" Style="{StaticResource HuaTiCancelButtonStyle}" Content="x" Click="btnCancel_Click" />-->
                </StackPanel>
                <TextBlock Text="最近的话题" Style="{StaticResource HuaTiSubTitleStyle}"/>
                <ListBox x:Name="HuatiListBox" Margin="12,0,0,80" Background="Transparent" Grid.ColumnSpan="2" Tap="HuatiListBox_Tap" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding}" Style="{StaticResource HuaTiTextStyle}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </Grid>
    </Popup>
</UserControl>
